import time
import progressbar
#range(100)用于模拟任务长度
for i in progressbar.progressbar(range(100 )):
    time.sleep(0.02)

